//
//  FKCommodityOfEvaluate.m
//  HappyTest
//
//  Created by Macbook Pro on 2019/2/25.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKCommodityOfEvaluate.h"

@implementation FKCommodityOfEvaluate

- (void)mj_keyValuesDidFinishConvertingToObject
{
    _star = @"5"; // 默认选中5颗星
    
    CGFloat titleH = [@"为商品评分" sizeWithAttributes:@{NSFontAttributeName : fk_adjustFont(14)}].height;
    CGFloat starContainerH = fk_adjustW(28);
    CGFloat photoH = (fkScreenW - 24 - 30) / 4;
    CGFloat photoY = 10 + fk_adjustW(70) + 10 + 20 + titleH + fk_adjustW(36) + starContainerH + fk_adjustW(32) + 15 + fk_adjustW(80) + 10;
    _photoViewFrame = CGRectMake(12, photoY, fkScreenW - 24, photoH);
    _cellH = photoY + photoH + 15 + 2;
//    _cellH = 10 + fk_adjustW(70) + 10 + 20 + titleH + fk_adjustW(36) + starContainerH + fk_adjustW(32) + 15 + fk_adjustW(80) + 10 + photoH + 15 + 2;
}

//- (void)setPhotos:(NSArray *)photos
//{
//    _photos = photos;
//    
//    // 这里再次计算cellH
//}

- (void)setPhotoDict:(NSDictionary *)photoDict
{
    _photoDict = photoDict;
}

@end
